package com.kfp.dubbo.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {

    @Autowired
    private AnimalServer animalServer;

    @RequestMapping("/run")
    public String run() {
        return animalServer.run() + "\n" + animalServer.dogRun();
    }
}
